package com.kinyx.examples.entities.impl;

import java.util.BitSet;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;

import com.kinyx.framework.db.annotation.Comment;
import com.kinyx.framework.db.annotation.Order;
import com.kinyx.hibernate.TypeStatics;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@Entity
@ToString
public class BitSetBasicType03Entity {

	@Id
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	@GeneratedValue(generator = "uuid")
	@Column(nullable = false, updatable = false, length = 32)
	@Comment("主键")
	@Order(-10000)
	private String id;

	@Type(type = TypeStatics.BIT_SET)
	@Column(length = 32)
	private BitSet bitSet;

}
